﻿@using System.IO;
@{
    ViewBag.Title = "upload";
}

<h2>upload file</h2>
@foreach (ModelState modelState in ViewData.ModelState.Values) {
    foreach (ModelError error in modelState.Errors) {
        <p>@error.ErrorMessage</p>
    }
}
@using (Html.BeginForm("Index", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    <input type="file" name="file" id="file" />
    <input type="submit" value="submit" />
}
<p>TTF present: @File.Exists(Path.Combine(Server.MapPath("~/App_Data"), "arial.ttf"))</p>